<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>课程界面给学生加课</title>
    <!--课程界面从数据库拿出数据然后学生加课-->
    <link rel="stylesheet" th:href="@{/css/bootstrap.css}" href="../static/css/bootstrap.css">
</head>
<body>
<table align='center' border='1' cellspacing='0' class="table table-hover">
    <tr>
        <th>序号</th>
        <th>邮箱/账号</th>
        <th>名字</th>
    </tr>
    <tr th:each="user:${page.content}">
        <td th:text="${user.stu_code}"><input type="checkbox" value="1">1</td>
        <td th:text="${user.stu_name}">17905710</td>
        <td th:text="${user.stu_sex}">张飞</td>
    </tr>
</table>
<button class="btn btn-default">全选</button>
<div align="center">
    <a th:href="@{/user/list?start=0}">【首页】</a>
    <a th:href="@{'/user/list?start='+${page.number-1}}">【上一页】</a>
    <a th:if="${page.number+1}<=${page.totalPages-1}" th:href="@{'/user/list?start='+${page.number+1}}">【下一页】</a>
    <a th:href="@{'/user/list?start='+${page.totalPages-1}}">【末页】</a>
    <br>
    <button class="btn btn-primary">添加</button>
</div>
</body>
<script th:src="@{/js/jquery-3.3.1.js}" src="../static/js/jquery-3.3.1.js"></script>
<script th:src="@{/js/bootstrap.js}" src="../static/js/bootstrap.js"></script>
</html>